<?php /* Smarty version 2.6.19, created on 2008-11-28 10:56:34
         compiled from index/index.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="index_content">
<h2>Tin nóng hổi - Tin mới</h2>

<?php $_from = $this->_tpl_vars['thongtin_arr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
<p class="thongtinitem">
<div><a href="javascript: show_content(<?php echo $this->_tpl_vars['item']['id']; ?>
);" class="catalogs_index"><?php echo $this->_tpl_vars['item']['title']; ?>
</a> - Chuyên đề: <?php echo $this->_tpl_vars['item']['catalog_name']; ?>
</div>

<div class="imageindex"><img src="data/image/upload/thongtin/<?php echo $this->_tpl_vars['item']['img_name_alias']; ?>
" alt="<?php echo $this->_tpl_vars['item']['img_name_truth']; ?>
" width="56" height="65"/></div> 

<div class="saboindex"><?php echo $this->_tpl_vars['item']['sabo']; ?>
</div>
</p>
<?php endforeach; else: ?>
Không có Catalogs nào :D
<?php endif; unset($_from); ?>
</div>
<?php echo '
<script type="text/javascript">
function show_content(id)
{

  
  



var options = {
    		method : \'post\',
    		parameters: {id: id},
    		onSuccess  :  function(transport){
			    $(\'index_content\').innerHTML =  transport.responseText;
		    },
		    onLoading: function(){$(\'workingMsg\').show()},
onLoaded: function(){$(\'workingMsg\').hide()}
    		
    	};    	
    	new Ajax.Request(\'listcontent.php\', options);
    	
	
}
</script>
'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>